﻿using AppMachine.Domain.LogicCom;
using Microsoft.EntityFrameworkCore;
using PerpheralDevice;
using System.Runtime.CompilerServices;

namespace AppMachine.EntityFrameworkCore;


public class AppDbContext : DbContext {

    public DbSet<AppComConfig> ComConfigList { get; set; }
    public DbSet<PerpDevConfig> PerpDevConfigList { get; set; }

    public AppDbContext(DbContextOptions<AppDbContext> options) : base(options) { }
    protected override void OnModelCreating(ModelBuilder modelBuilder) {
        modelBuilder.ApplyConfigurationsFromAssembly(this.GetType().Assembly);
    }

}
